
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Supplier;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Supplier entities.
 * 
 */
public interface SupplierDAO extends JpaDao<Supplier> {

	/**
	 * JPQL Query - findSupplierById
	 *
	 */
	public Supplier findSupplierById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierById
	 *
	 */
	public Supplier findSupplierById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByNameContaining
	 *
	 */
	public Set<Supplier> findSupplierByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByNameContaining
	 *
	 */
	public Set<Supplier> findSupplierByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByName
	 *
	 */
	public Set<Supplier> findSupplierByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByName
	 *
	 */
	public Set<Supplier> findSupplierByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByPrimaryKey
	 *
	 */
	public Supplier findSupplierByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findSupplierByPrimaryKey
	 *
	 */
	public Supplier findSupplierByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllSuppliers
	 *
	 */
	public Set<Supplier> findAllSuppliers() throws DataAccessException;

	/**
	 * JPQL Query - findAllSuppliers
	 *
	 */
	public Set<Supplier> findAllSuppliers(int startResult, int maxRows) throws DataAccessException;

}